<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<%@ include file="/WEB-INF/include/include.jsp"%>
		<link href="<%=path%>/css/frame.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="<%=path%>/js/home.js"></script>
		<title><%=System.getProperty("SYS_NAME") %></title>
	</head>
	<body>
		<div id="headWrap">
			<div class="header">
				<div class="logo">
					<a href="http://www.pearlsen.com" target="centerFrame" title="博尔信软件有限公司"> <img
							src="<%=path%>/css/images/logo.jpg" alt="博尔信软件有限公司" /> </a>
				</div>
				<div class="miniNav">
					<span class="user">欢迎您，<%=request.getSession().getAttribute("USERNAME")%>【<%
            java.util.List<com.pearlsoft.webapp.core.dataset.Record> records= (java.util.List<com.pearlsoft.webapp.core.dataset.Record>)request.getSession().getAttribute("roles");
            if(records!=null) {
                java.util.Iterator<com.pearlsoft.webapp.core.dataset.Record> itr=records.iterator();
                while(itr.hasNext()) {
                    com.pearlsoft.webapp.core.dataset.Record record=itr.next();
                    out.print(record.getValue("ROLE_NAME"));
                    if(itr.hasNext()) {
                        out.print("/");
                    }
                }
            }
					%>】&nbsp;[<a href="#" onclick="javascript:home.doLogout();"
						>退出</a>]</span>
					<a class="link1" href="#" onclick="javascript:home.showLock();">锁屏</a>
					<a class="link2" href="#">工具</a>
					<a class="link3" href="#">帮助</a>
				</div>
			</div>

			<div class="menuBar" id="menuBarWrap">
				<ul class="menu" id="menubar" name="menubar">
				</ul>
			</div>
		</div>
		<div id="mainWrap" style="width: 100%; background-color: green"></div>
		<script type="text/javascript">
			var menuTree = home.menuTree();
			var mainTabPanel;
		</script>
		<ui:page>
			<ui:tabPanel id="mainTabPanel" var="_mainTabPanel">
				<x:items>
					<ui:tabPanel.tab title="工作台">
						<x:attr name="autoScroll" type="boolean">true</x:attr>
					</ui:tabPanel.tab>
				</x:items>
			</ui:tabPanel>
			<ui:viewport layout="border">
				<x:items>
					<ui:panel>
						<x:attr name="region" type="string">north</x:attr>
						<x:attr name="contentEl" type="string">headWrap</x:attr>
					</ui:panel>
					<ui:panel title="功能菜单" id="menuPanel" split="true" width="200" layout="fit">
						<x:attr name="region" type="string">west</x:attr>
						<x:attr name="minWidth" type="int">200</x:attr>
						<x:attr name="margins" type="string">0 0 0 0</x:attr>
						<x:items>
							<x:value type="direct">menuTree</x:value>
						</x:items>
					</ui:panel>

					<ui:panel split="true" layout="fit">
						<x:attr name="border" type="boolean">center</x:attr>
						<x:attr name="minWidth" type="int">200</x:attr>
						<x:attr name="margins" type="string">0 0 0 0</x:attr>
						<x:attr name="region" type="string">center</x:attr>
						<x:items>
							<x:value type="direct">_mainTabPanel</x:value>
						</x:items>
					</ui:panel>
				</x:items>
			</ui:viewport>
			<x:bottomScript>
				mainTabPanel = Ext.getCmp("mainTabPanel");
			</x:bottomScript>
		</ui:page>
		<script type="text/javascript">
			home.initMenu();
		</script>
	</body>
</html>